#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<stdlib.h>

int nini(const void* a, const void* b)
{
	if (*(int*)a < *(int*)b)
		return 1;
	else if (*(int*)a > *(int*)b)
		return -1;
	else return 0;
}
int main() {
	int arr[10] = { 0 };
	for (int i = 0; i < 10; i++)
	{
		scanf("%d", &arr[i]);
	}
	qsort(arr, 10, sizeof(int), nini);
	printf("%d", arr[0]);
	return 0;
}